from typing import List
from pydantic import BaseModel


class CreateUser(BaseModel):
    username: str
    # hash_password: str
    nick_name: str
    # avatar: str
    email: str
    mobile: str
    is_superuser: int
    is_active: int
    user_roles: List


class ModifyUser(BaseModel):
    uuid: int
    username: str
    nick_name: str
    email: str
    mobile: str
    is_superuser: int
    is_active: int
    user_roles: List


class ModifyUserIsActive(BaseModel):
    uuid: int
    is_active: int


class DeleteUser(BaseModel):
    uuid: int


class CreateRole(BaseModel):
    role_name: str
    description: str
    # role_permissions: List


class ModifyRole(BaseModel):
    uuid: int
    role_name: str
    description: str
    # role_permissions: List


class DeleteRole(BaseModel):
    uuid: str
